Dew Math for .NET
|
Numerical integration by Monte Carlo method.
Parameters |
Description |
TRealFunction Fun |
Integrating function. |
double lb |
Defines lower bound. |
double ub |
Defines pper bound. |
[In] TMtxFloatPrecision FloatPrecision |
Defines the computational precision to be used by the routine. |
[In] TVec Constants |
Additional constants defining Fun function, usually nil/null. |
[In] object[] ObjConst |
Additional objects defining Fun function, usually nil/null. |
int N |
Number of random points in [lb,ub] interval (see comments above). |
the numerical approximate on integral of function Fun between limits lb and ub.
Performs a numerical integration of function of single variable by using Monte Carlo method.
Evaluate fuction Sin(x) on interval [0,PI] by using Monte Carlo algorithm.
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
|
What do you think about this topic? Send feedback!
|